import type { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/login",
    meta: { order: -2, menuName: "", icon: "", tarot: 1 },
  },
  {
    name: "Login",
    path: "/login",
    component: () => import("@/views/main/Login.vue"),
    meta: { order: -1, menuName: "", icon: "", tarot: 1 },
  },
  {
    name: "Home",
    path: "/home",
    component: () => import("@/views/main/Home.vue"),
    redirect: "/page/dashboard",
    meta: { order: 0, menuName: "主页", icon: "HomeFilled", tarot: 1 },
    children: [
      // {
      //   name: "Dashboard",
      //   path: "/page/dashboard",
      //   component: () => import("@/views/page/Dashboard.vue"),
      // }
    ]
  },
];

export default routes;
